package me.jzn.alib.inner;

import androidx.annotation.RestrictTo;

@RestrictTo(RestrictTo.Scope.LIBRARY)
public class InnerData {
    //本来可以写入资源文件，为了避免对依赖者的干扰，提取出来一个类吧
    public static final String sdkVersionStr(int sdkVer) {
        switch (sdkVer) {
            case 16:
                return "4.1";
            case 17:
                return "4.2";
            case 18:
                return "4.3";
            case 19:
                return "4.4";
            case 20:
                return "4.4w";
            case 21:
                return "5";
            case 22:
                return "5.1";
            case 23:
                return "6";
            case 24:
                return "7";
            case 25:
                return "7.1";
            case 26:
                return "8";
            case 27:
                return "8.1";
            case 28:
                return "9";
            case 29:
                return "10";
            case 30:
                return "11";
            case 31:
                return "12";
            case 32:
                return "12.1";
            case 33:
                return "13";
            case 34:
                return "14";
            default:
                int lastSdkVer = 34;
                int lastRtn = 14;
                if (sdkVer > lastSdkVer) {
                    return "*" + (lastRtn + sdkVer - lastSdkVer);
                }
                return "unkown-" + sdkVer;
        }
    }
}
